﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Threading;
using Volo.Abp.Domain.Repositories;
using mozhi.smarterp.BasicData.Enums;

namespace mozhi.smarterp.BasicData.PaymentTerms.Repositories
{
    public interface IPaymentTermRepository : IRepository<PaymentTerm, Guid>
    {
        Task<List<PaymentTerm>> GetPagedListAsync(string keyword, bool? activated, PaymentTermType type, int skipCount, int maxResultCount, string sorting, bool includeDetails = false, CancellationToken cancellationToken = default(CancellationToken));

        Task<int> GetCountAsync(string keyword, string code, string name, bool? activated, Guid? excludeId, PaymentTermType type , CancellationToken cancellationToken = default(CancellationToken));
    }
}
